﻿using SqlSugar;
using System;

namespace Qy.Scenario;

[SugarTable(DbTableName.OasOndutyData)]
public class OndutyData
{
    [SugarColumn(IsPrimaryKey = true)]
    public int Id { get; set; }
    public int Cid { get; set; }
    public string OneLevel { get; set; }
    public string TwoLevel { get; set; }
    public string ThreeLevel { get; set; }
    public string OtherBody { get; set; }
    public string Phone { get; set; }
    public DateTime StartTime { get; set; }
    public DateTime EndTime { get; set; }
    public string Remark { get; set; }
    public int Sort { get; set; }
    public bool Status { get; set; }

}

public class ViewOndutyData
{
    public int Id { get; set; }
    public int Cid { get; set; }    
    public string CatName { get; set; }
    public string OneLevel { get; set; }
    public string TwoLevel { get; set; }
    public string ThreeLevel { get; set; }
    public string OtherBody { get; set; }
    public string Phone { get; set; }
    public DateTime StartTime { get; set; }
    public DateTime EndTime { get; set; }
    public string Remark { get; set; }
    public int Sort { get; set; }
    public bool Status { get; set; }

}

public class QueryOndutyData:PagerInfo
{
    public int Cid { get; set; } = 0;
    public string ReferToTime { get; set; } = DateTime.Now.ToString("yyyy-MM-dd");
    public int Type { get; set; } = (int)OndutyTypeEnum.Type.等于参考时间; 
    public DateTime? StartTime { get; set; }
    public DateTime? EndTime { get; set; }
}

